package Zyai;
//电脑有品牌，价格，颜色，屏幕大小等属性，定义并测试电脑对象，并输出
public class Brain {
    String  brand;
    double price;
    String colour;
    int scrren;
    public void Stind(){
        System.out.println("这是"+brand+"颜色"+colour+"屏幕大小"+scrren+"价格"+price);
    }

    public static void main(String[] args) {
        Brain b = new Brain();
        b.price=3666.0;
        b.scrren=32;
        b.colour="红";
        b.brand="联想";
        b.Stind();
    }
}
